home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-15 / fwkct118.zip / FWKCTEST.BAT < prev    next >
DOS Batch File  |  1992-09-11  |  31KB  |  899 lines

  1. @echo off
  2. if not "%2" == "..1.18" goto zz
  3. if exist QUERYFLA.GUP del QUERYFLA.GUP > nul
  4. if exist QUERYFLA.GUP fwkcs /rt30a7.7c QUERYFLA.GUP > nul
  5. if exist QUERYFLA.GUP del QUERYFLA.GUP > nul
  6. goto us1
  7. :zz
  8. cls
  9. echo -
  10. echo -  To make a printed record, first turn your printer on, then
  11. echo -  toggle Ctrl+P or Ctrl+Shft+PrtSc to send screen output to your printer,
  12. echo -  and then
  13. pause
  14. echo -
  15. echo -  FWKCS(TM) Contents_Signature System, Version 1.18.
  16. echo -  Printed record of FWKCTEST test procedure:
  17. echo =========================================================================
  18. echo -
  19. cls
  20. echo - Part of FWKCS(TM) Contents_Signature System, Version 1.18.
  21. echo - (C)Copyright Frederick W. Kantor 1989-1992. All rights reserved.
  22. echo -
  23. echo - Your use of the FWKCS(TM) Contents_Signature System is at solely your own
  24. echo - risk.  For safety, please have proper backups of your files.
  25. echo -
  26. :us1
  27. echo - FWKCTEST(TM)  primarily to test FWKCS Auxiliary Functions 4 and 5.
  28. echo -
  29. echo - To use this program, have available on your path (or in current directory):
  30. echo -   FWKCS.EXE (preferably let FWKCTEST fetch a copy from your path),
  31. echo -   Phil Katz's PKZIP(R), PKUNZIP(R), and ZIP2EXE, Version 1.10,
  32. echo -   McAfee's SCAN (a recent copy),
  33. echo -   IBM/MS DOS DEBUG, and a version of QBASIC, BASICA, BASIC, or GWBASIC,
  34. echo -       suitable for use on your system.
  35. echo -
  36. echo - To see what happened after it finishes running, Vernon Buerg's LIST.
  37. echo -
  38. echo - Usage:  starting in a new subdirectory with d:\path less than 20 characters
  39. echo -         long, with 2 Megabytes free space, with the new current directory
  40. echo -         empty or holding at most FWKCS.EXE, FWKCTEST.BAT, and FWKCLEAR.BAT,
  41. echo -     do
  42. echo -         FWKCTEST "<enter>"
  43. echo -
  44. pause
  45. echo -
  46. echo ------------------------------------------------------------------------
  47. echo -
  48. cls
  49. echo - This program runs with echo on, so that you can see how it sets up its
  50. echo - subdirectories and builds its test files.
  51. echo -   To temporarily stop the action, press Ctrl+NumLock.
  52. echo -   To resume, press any alphameric key.
  53. echo -
  54. echo - One set of files is built in an MSG subdirectory. These short MSG\files
  55. echo - contain their filenames. These filenames appear at the location where your
  56. echo - messages to users would appear. To customize a message, you would take out
  57. echo - of that file the line showing the filename, and put in your material.  For
  58. echo - additional customization, see FWKCS118.REF Auxiliary Function 5, option h.
  59. echo - These custom message files are optional. PCBoard @codes are displayed, too.
  60. echo -
  61. echo - Then a series of test files is built, to test many features:
  62. echo -   finding an artificial virus string hidden in a four_layer sandwich of
  63. echo -     subdirectories, all of which contain files with the same name;
  64. echo -   regardless of their names:  finding duplicate or redundant files,
  65. echo -     removing selected files from inside zipfiles, rejecting selected files;
  66. echo -   processing zipfile Authenticity Verification (AV) stamps (if you have not
  67. echo -     registered PKZIP, you may miss 3 tests: purging non_AV files from inside
  68. echo -     AV_zipfiles, not "wiping" AV_file from AV_zipfile, banning an AV_stamp);
  69. echo -   LOOKUP(TM) remote contents_signature searching, detailed or short reply;
  70. echo - and many others.
  71. echo -
  72. pause
  73. echo -
  74. echo ------------------------------------------------------------------------
  75. echo -
  76. cls
  77. echo - On the first pass, you get to watch from the point of view of a user
  78. echo - uploading files to a bulletin board system which uses FWKCS Version 1.18,
  79. echo - but with PCBoard @codes visible. Except for testing the exclusion operation,
  80. echo - which by default deletes x_flagged files, the files which were not accepted
  81. echo - are moved into separate subdirectories. This tests Auxiliary Function 5.
  82. echo -
  83. echo - Then the program sets aside the contents_signatures it has found,
  84. echo - and this time goes through the files in the 4REN subdirectory.
  85. echo - This tests Auxiliary Function 4, which renames files which were not
  86. echo - accepted. In each case, it explains why it renamed a file.
  87. echo -
  88. echo - For further explanation, see Auxiliary Functions 4 and 5 in FWKCS118.REF
  89. echo - (with FWKCS.EXE and FWKCS118.REF on your PATH, type FWKCS /** "<enter>" ;
  90. echo - or make \CSA your current directory, and let CSAM get literature for you.).
  91. echo -
  92. echo - FWKCTEST makes many files and subdirectories -- which FWKCLEAR removes.
  93. echo - These two programs are part of the quality control procedures for the
  94. echo - FWKCS(TM) Contents_Signature System. This quality control is part of the
  95. echo - "spirit" of creating the special contents_signatures used, with their
  96. echo - pair_wise statistical error rate typically less than one part per trillion.
  97. echo -                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  98. if "%1" == "/*" goto z1
  99. echo -  To quit, press Ctrl+C, then y
  100. echo -
  101. pause
  102. echo -
  103. echo ------------------------------------------------------------------------
  104. echo -
  105. cls
  106. @echo on
  107. rem test to avoid subdirectory:
  108. echo test > msg\!@!@!@!@!
  109. if not exist msg\!@!@!@!@! goto t01
  110. del msg\!@!@!@!@!
  111. goto q0
  112. :t01
  113. rem  Good! It's not here. Test another...
  114. echo test > ##cellar\!@!@!@!@!
  115. if not exist ##cellar\!@!@!@!@! goto t02
  116. del ##cellar\!@!@!@!@!
  117. goto q0
  118. :t02
  119. rem  Good! It's not here. Test another...
  120. echo test > work\!@!@!@!@!
  121. if not exist work\!@!@!@!@! goto t03
  122. del work\!@!@!@!@!
  123. goto q0
  124. :t03
  125. rem  Good! It's not here. Test another...
  126. echo test > bav\!@!@!@!@!
  127. if not exist bav\!@!@!@!@! goto t04
  128. del bav\!@!@!@!@!
  129. goto q0
  130. :t04
  131. rem  Good! It's not here. Test another...
  132. echo test > enc\!@!@!@!@!
  133. if not exist enc\!@!@!@!@! goto t05
  134. del enc\!@!@!@!@!
  135. goto q0
  136. :t05
  137. rem  Good! It's not here. Test another...
  138. echo test > fzt\!@!@!@!@!
  139. if not exist fzt\!@!@!@!@! goto t06
  140. del fzt\!@!@!@!@!
  141. goto q0
  142. :t06
  143. rem  Good! It's not here. Test another...
  144. echo test > old\!@!@!@!@!
  145. if not exist old\!@!@!@!@! goto t07
  146. del old\!@!@!@!@!
  147. goto q0
  148. :t07
  149. rem  Good! It's not here. Test another...
  150. echo test > potvirus\!@!@!@!@!
  151. if not exist potvirus\!@!@!@!@! goto t08
  152. del potvirus\!@!@!@!@!
  153. goto q0
  154. :t08
  155. rem  Good! It's not here. Test another...
  156. echo test > qsn\!@!@!@!@!
  157. if not exist qsn\!@!@!@!@! goto t09
  158. del qsn\!@!@!@!@!
  159. goto q0
  160. :t09
  161. rem  Good! It's not here. Test another...
  162. echo test > trashold\!@!@!@!@!
  163. if not exist trashold\!@!@!@!@! goto t10
  164. del trashold\!@!@!@!@!
  165. goto q0
  166. :t10
  167. rem  Good! It's not here. Test another...
  168. echo test > ziz\!@!@!@!@!
  169. if not exist ziz\!@!@!@!@! goto t11
  170. del ziz\!@!@!@!@!
  171. goto q0
  172. :t11
  173. rem  Good! It's not here. Test another...
  174. echo test > accepted\!@!@!@!@!
  175. if not exist accepted\!@!@!@!@! goto t12
  176. del accepted\!@!@!@!@!
  177. goto q0
  178. :t12
  179. rem  Good! It's not here. Test another...
  180. echo test > 4ren\!@!@!@!@!
  181. if not exist 4ren\!@!@!@!@! goto t13
  182. del 4ren\!@!@!@!@!
  183. goto q0
  184. :t13
  185. rem  Good! It's not here. Test another...
  186. echo test > mav\!@!@!@!@!
  187. if not exist mav\!@!@!@!@! goto t14
  188. del mav\!@!@!@!@!
  189. goto q0
  190. :t14
  191. rem  Good! It's not here. Test another...
  192. echo test > uav\!@!@!@!@!
  193. if not exist uav\!@!@!@!@! goto t15
  194. del uav\!@!@!@!@!
  195. goto q0
  196. :t15
  197. rem  Good! None of those subdirectories is here.
  198. if exist fwkcs.exe goto fwk
  199. fwkcs /ra > dscreen
  200. fwkcs /rd >> dscreen
  201. if not exist dscreen goto help0
  202. echo 1 OPEN "DSCREEN" FOR INPUT AS 1:OPEN "RANBAS" FOR OUTPUT AS 2:PRINT #2,"HERE"> GETFWKCS.BAS
  203. echo 2 LINE INPUT #1,A$:IF INSTR(A$,"1.18")=0 THEN GOTO 6>> GETFWKCS.BAS
  204. echo 3 WHILE NOT EOF(1):LINE INPUT #1,A$:WEND>> GETFWKCS.BAS
  205. echo 4 IF INSTR(A$,"FWKCS.EXE")=0 THEN GOTO 6>> GETFWKCS.BAS
  206. echo 5 SHELL "COPY "+A$>> GETFWKCS.BAS
  207. echo 6 CLOSE:SYSTEM>> GETFWKCS.BAS
  208. qbasic /run getfwkcs.bas
  209. if exist ranbas goto fbas
  210. gwbasic getfwkcs.bas
  211. if exist ranbas goto fbas
  212. basica getfwkcs.bas
  213. if exist ranbas goto fbas
  214. basic getfwkcs.bas
  215. if exist ranbas goto fbas
  216. goto nbas
  217. :fbas
  218. del dscreen
  219. del ranbas
  220. if not exist fwkcs.exe goto help0
  221. echo fetched FWKCS.EXE from elsewhere> gotfwkcs.far
  222. :fwk
  223. echo ok to run fwkclear.bat here > okcleanh.ere
  224. md msg
  225. cd msg
  226. echo preface.upl > preface.upl
  227. echo preface.tst > preface.tst
  228. echo ending.upl  > ending.upl
  229. echo ending.tst  > ending.tst
  230. echo first.00 > first.00
  231. echo  last.00 >  last.00
  232. echo first.t0 > first.t0
  233. echo  last.t0 >  last.t0
  234. echo first.01 > first.01
  235. echo  last.01 >  last.01
  236. echo first.03 > first.03
  237. echo  last.03 >  last.03
  238. echo first.04 > first.04
  239. echo  last.04 >  last.04
  240. echo first.05 > first.05
  241. echo  last.05 >  last.05
  242. echo first.06 > first.06
  243. echo  last.06 >  last.06
  244. echo first.07 > first.07
  245. echo  last.07 >  last.07
  246. echo first.t7 > first.t7
  247. echo  last.t7 >  last.t7
  248. echo first.08 > first.08
  249. echo  last.08 >  last.08
  250. echo first.09 > first.09
  251. echo  last.09 >  last.09
  252. echo first.10 > first.10
  253. echo  last.10 >  last.10
  254. echo first.11 > first.11
  255. echo  last.11 >  last.11
  256. echo first.12 > first.12
  257. echo  last.12 >  last.12
  258. echo first.13 > first.13
  259. echo  last.13 >  last.13
  260. echo first.14 > first.14
  261. echo  last.14 >  last.14
  262. echo first.15 > first.15
  263. echo  last.15 >  last.15
  264. echo first.16 > first.16
  265. echo  last.16 >  last.16
  266. echo first.17 > first.17
  267. echo  last.17 >  last.17
  268. echo first.19 > first.19
  269. echo  last.19 >  last.19
  270. echo first.20 > first.20
  271. echo  last.20 >  last.20
  272. echo first.21 > first.21
  273. echo  last.21 >  last.21
  274. echo first.22 > first.22
  275. echo  last.22 >  last.22
  276. echo first.23 > first.23
  277. echo  last.23 >  last.23
  278. cd..
  279. md work
  280. md bav
  281. md enc
  282. md fzt
  283. md mav
  284. md old
  285. md potvirus
  286. md qsn
  287. md trashold
  288. md uav
  289. md ziz
  290. md accepted
  291. md 4ren
  292. echo -> zcomb
  293. echo ----- this zipfile comment is for local_use.>> zcomb
  294. echo -> zcom
  295. echo ----- this zipfile comment is for "uploads".>> zcom
  296. fwkcs /a7.7c fwkcs.exe
  297. fwkcs /revert
  298. fwkcs cslist.ndx /d1
  299. fwkcs cslist.srt /d2
  300. fwkcs cslist1.ndx /d3
  301. fwkcs cslist1.srt /d4
  302. fwkcs a18c,zcomb;j,junkb;k0n2,1;o,oust;pwv,virdata;v3z0 /db
  303. fwkcs e,ziz;q,potvirus;z0 /dc
  304. fwkcs v1,telsysop;t,trashold;a18,,old;n4,1,50,qsn; /dd
  305. fwkcs opwiyj,junk;h,msg;k0kb,bav;ke,enc;kf,fzt;km,mav;ku,uav;g1,3 /de
  306. fwkcs c,zcom;v3v,virdata; /df
  307. fwkcs /d
  308. echo      -
  309. echo top layer of pseudovirus_hiding sandwich> file0
  310. md 1
  311. echo layer 2> 1\file0
  312. md 1\1
  313. echo This pSeUdOvIrOidal file might be called file number 0, and> 1\1\file0
  314. echo hidden in a zip in such way that it would be overwritten by>> 1\1\file0
  315. echo another file of the same name unzipped after it.>> 1\1\file0
  316. md 1\1\1
  317. echo layer 4> 1\1\1\file0
  318. pkzip virpath.t file0 -om -p -r
  319. rd 1\1\1
  320. rd 1\1
  321. rd 1
  322. echo "70 53 65 55 64 4F 76 49 72 4F 69"  pSeUdOvIrOi> virdata
  323. echo "46 49 4C 45 36 50 4B 05 06 00 00"  sixinZip>> virdata
  324. echo this is test file number 1> file1
  325. echo And this is test file number 2.> file2
  326. echo Here, for example, is test file number 3...> file3
  327. echo And, next, is test file number 4.> file4
  328. echo Here is yet another example, which might be called test file 5> file5
  329. echo Might this be test file number 6?> file6
  330. echo How about test file number 7?> file7
  331. echo this might be called file 8> file8
  332. echo here is file 9> file9
  333. echo and file 10> file10
  334. echo would you like 11?> file11
  335. echo or perhaps 12?> file12
  336. echo this is a file. is it 13?> file13
  337. echo is this file called 14?> file14
  338. echo aha! a 15> file15
  339. echo this might be 16> file16
  340. echo hooha 17> file17
  341. echo 18 might be called> file18
  342. echo 19 as> file19
  343. echo 20 here> file20
  344. echo this might be 21> file21
  345. echo and 22> file22
  346. echo a 24> file24
  347. echo ho! 25!> file25
  348. echo and 26 into> file26
  349. echo 27> file27
  350. echo hooha? 28> file28
  351. echo and next, 29> file29
  352. echo into 30> file30
  353. echo for 31> file31
  354. echo to make file 32> file32
  355. echo is there to be a file 33?> file33
  356. echo this is file34> file34
  357. echo and 35> file35
  358. echo or 36> file36
  359. echo file 37> file37
  360. pkzip zipexet file27 file34 -o
  361. if exist zipexet.zip goto a0
  362. @echo off
  363. echo -
  364. echo - where is Phil Katz's PKZIP(R)?
  365. goto quit1
  366. :a0
  367. zip2exe zipexet
  368. if exist zipexet.exe goto a1
  369. @echo off
  370. echo -
  371. echo - where is Phil Katz's ZIP2EXE for use with PKZIP(R)?
  372. goto quit1
  373. :a1
  374. copy file27 pipexet.t
  375. pkzip zipexejt -ei -o file28 file35
  376. zip2exe -j zipexejt
  377. copy file28 pipexejt.t
  378. copy file26 pzonlyt.t
  379. pkzip zzonlyt.t file26 file36
  380.  
  381. rem   Next, pkzip is called to make an AV_stamped zipfile.
  382. rem   If pkzip stops, press a key to continue.
  383. rem   If that happens, FWKCTEST will skip 2 more such calls.
  384.  
  385. pkzip -! w_in_avt.t file24 file11 file25
  386. if exist w_in_avt.t goto m0
  387. echo did not make PKZIP AV_stamp> no_av
  388. :m0
  389. echo oops, no AV> file88
  390. pkzip mavtest.t file88
  391. echo not yet listed AV> file89
  392. if not exist no_av pkzip -! unfamav.t file89
  393. echo known AV> file90
  394. echo part of known AV> file91
  395. if not exist no_av pkzip -! knownav.t file90 file91
  396. echo secret 0> file70
  397. pkzip enc0test.t file70 -sneet -o
  398. md secret
  399. echo secret 1> secret\file71
  400. echo secret 2> secret\file72
  401. echo plain 1> file71
  402. echo plain 2> file72
  403. pkzip enc1test.t file71 file72 -o
  404. pkzip -P enc1test.t secret\file71 -snooze -om
  405. pkzip -P enc1test.t secret\file72 -sftyopl -om
  406. echo secret 3> secret\file73
  407. echo secret 4> secret\file74
  408. echo plain 3> file73
  409. echo plain 4> file74
  410. pkzip enc3test.t file73 file74 -o
  411. pkzip -P enc3test.t secret\file73 -snoze -om
  412. pkzip -P enc3test.t secret\file74 -sfyopl -om
  413. rd secret
  414. echo secret 53> file53
  415. echo plain 54> file54
  416. pkzip encmixt.t file53 -soap -o
  417. pkzip encmixt.t file54 -o
  418. copy file1 okptest.t
  419. pkzip allnewzt.t file2 file3 -o
  420. copy file2 rnztest.t
  421. pkzip 1notnewz.t file1 file13 file14 file15 -o
  422. pkzip red@tst.t file1 file3 -o
  423. copy file2 frog1
  424. copy file3 frog2
  425. pkzip duptest.t frog2 frog1 -om
  426. pkzip qsntest.t file1 file2 file4 -o
  427. if not exist no_av pkzip -! bavtest.t file5
  428. echo nsub1yr.com> @!@
  429. echo e100 33 C9 8A 0E 80 00 BE 81 00 80 3C 20 77 06 46 E2>> @!@
  430. echo e110 F8 E9 23 00 89 F2 80 3C 20 72 03 46 E2 F8 C6 04>> @!@
  431. echo e120 00 B8 02 3D CD 21 72 0F 8B D8 B8 00 57 CD 21 80>> @!@
  432. echo e130 EE 02 B8 01 57 CD 21 B4 4C CD 21>> @!@
  433. echo rcx>> @!@
  434. echo 3b>> @!@
  435. echo w>> @!@
  436. echo q>> @!@
  437. debug < @!@
  438. if exist sub1yr.com goto a2
  439. echo -
  440. echo - i need access to IBM/MS DOS DEBUG.
  441. goto quit1
  442. :a2
  443. pkzip virshel.t file6 -o
  444. pkzip ziztest.t qsntest.t
  445. pkzip fzttest.t file7 -o
  446. echo nfzttest.t> @!@
  447. echo l>> @!@
  448. echo e130 70>> @!@
  449. echo w>> @!@
  450. echo q>> @!@
  451. debug < @!@
  452.  
  453. rem   this next test is specifically for use with PKZIP 1.10:
  454.  
  455. pkzip obsdfcnt.av file12
  456. echo nobsdfcnt.av> @!@
  457. echo l>> @!@
  458. echo e13d 20>> @!@
  459. echo w>> @!@
  460. echo q>> @!@
  461. debug < @!@
  462. del @!@
  463.  
  464. sub1yr file22
  465. sub1yr file22
  466. sub1yr file22
  467. copy file22 ageptest.t
  468. pkzip ageztest.t file22
  469. sub1yr file29
  470. del sub1yr.com
  471. pkzip 1yrlast.t file29 file22
  472. echo 1 open "longcs.t" for output as 1> longcs.bas
  473. echo 2 for i=1 to 513:s$=mid$(str$(i),2)>> longcs.bas
  474. echo 3 s$=string$(8-len(s$),"0")+s$+"    1234">> longcs.bas
  475. echo 4 print #1,s$:next:system>> longcs.bas
  476. qbasic /run longcs.bas
  477. if exist longcs.t goto lcs
  478. gwbasic longcs.bas
  479. if exist longcs.t goto lcs
  480. basica longcs.bas
  481. if exist longcs.t goto lcs
  482. basic longcs.bas
  483. if exist longcs.t goto lcs
  484. :nbas
  485. echo -
  486. echo -  i need access to QBASIC, BASICA, BASIC, or GWBASIC, whichever is
  487. echo -  compatible with your system.
  488. goto quit1
  489. :lcs
  490. del longcs.bas
  491. fwkcs /1 file8 | fwkcs /a7.1x xflref
  492. fwkcs /1 file11 | fwkcs /a7.1w w11ref
  493. fwkcs /1 file37 | fwkcs /a7.1w w37ref
  494. if exist no_av goto nm1
  495. pkzip -! purgetst.t file16 file30 -o
  496. pkzip purgetst.t file17 file31 -o
  497. :nm1
  498. pkzip wipetest.t file11 file18 file32 -o
  499. del file18
  500. del file32
  501. ren file11 file18
  502. ren file37 file32
  503. echo i am not the unpleasant file11 you might have heard of, although i might> file11
  504. echo have a vague recollection that it was somewhere around here recently,>> file11
  505. echo possibly under a different name, or maybe in a different...>> file11
  506. md 0
  507. md 0\1
  508. md 0\1\2
  509. md 0\1\2\3
  510. md 0\1\2\3\4
  511. md 0\1\2\3\4\5
  512. md 0\1\2\3\4\5\6
  513. md 0\1\2\3\4\5\6\7
  514. md 0\1\2\3\4\5\6\7\8
  515. md 0\1\2\3\4\5\6\7\8\9
  516. md 0\1\2\3\4\5\6\7\8\9\A
  517. md 0\1\2\3\4\5\6\7\8\9\A\B
  518. md 0\1\2\3\4\5\6\7\8\9\A\B\C
  519. md 0\1\2\3\4\5\6\7\8\9\A\B\C\D
  520. md 0\1\2\3\4\5\6\7\8\9\A\B\C\D\E
  521. md 0\1\2\3\4\5\6\7\8\9\A\B\C\D\E\F
  522. md 0\1\2\3\4\5\6\7\8\9\A\B\C\D\E\F\etc
  523. copy file18 0\1\2\3\4\5\6\7\8\9\a\b\c\d\e\f\etc
  524. if not exist 0\1\2\3\4\5\6\7\8\9\a\b\c\d\e\f\etc\file18 goto nde
  525. copy file32 0\1\2\3\4\5\6\7\8\9\a\b\c\d\e\f\etc
  526. copy file11 0\1\2\3\4\5\6\7\8\9\a\b\c\d\e\f\etc
  527. pkzip -P wipetest.t 0\1\2\3\4\5\6\7\8\9\a\b\c\d\e\f\etc\file?? -om
  528. goto deep
  529. :nde
  530. echo not enough \path\ length left> too_shal.low
  531. :deep
  532. rd 0\1\2\3\4\5\6\7\8\9\A\B\C\D\E\F\etc
  533. rd 0\1\2\3\4\5\6\7\8\9\A\B\C\D\E\F
  534. rd 0\1\2\3\4\5\6\7\8\9\A\B\C\D\E
  535. rd 0\1\2\3\4\5\6\7\8\9\A\B\C\D
  536. rd 0\1\2\3\4\5\6\7\8\9\A\B\C
  537. rd 0\1\2\3\4\5\6\7\8\9\A\B
  538. rd 0\1\2\3\4\5\6\7\8\9\A
  539. rd 0\1\2\3\4\5\6\7\8\9
  540. rd 0\1\2\3\4\5\6\7\8
  541. rd 0\1\2\3\4\5\6\7
  542. rd 0\1\2\3\4\5\6
  543. rd 0\1\2\3\4\5
  544. rd 0\1\2\3\4
  545. rd 0\1\2\3
  546. rd 0\1\2
  547. rd 0\1
  548. rd 0
  549. if not exist too_shal.low goto deep2
  550. @echo off
  551. echo -
  552. echo - This subdirectory has a d:\path which contains too many characters.
  553. echo -
  554. echo - Make a new subdirectory with d:\path less than 20 characters long,
  555. echo - and run FWKCTEST there.
  556. goto quit1
  557. :deep2
  558. copy file8 xcptest.t
  559. pkzip xcztest.t file19 file20 file8 file21 -o
  560. copy file1 gleep7
  561. copy file3 threek
  562. pkzip whatsit.t threek gleep7
  563. echo 1 open "do_test4.bat" for output as 1> m4.bas
  564. echo 2 print #1,"@echo off":print #1,"rem (C)Copyright Frederick W. Kantor 1989-1992. All rights reserved.">> m4.bas
  565. echo 3 print #1,"if not exist %%1 goto end">> m4.bas
  566. echo 4 print #1,"fwkcs %%1 /t20a4[wxb]":print #1,"if not exist oust goto end">> m4.bas
  567. echo 5 print #1,"echo -------------------------------------------------------------->> via_oust">> m4.bas
  568. echo 6 print #1,"echo listed for removal from  %%1  via OUST:>> via_oust">> m4.bas
  569. echo 7 print #1,"echo ->> via_oust":print #1,"type oust >> via_oust">> m4.bas
  570. echo 8 print #1,"pkzip %%1 -d @oust":print #1,"fwkcs %%1 /t20a3":print #1,"del oust":print #1,":end">> m4.bas
  571. echo 9 print #1,"echo -------------------------------------------------------------------------------">> m4.bas
  572. echo 10 system>> m4.bas
  573. qbasic /run m4.bas
  574. if exist do_test4.bat goto md4
  575. gwbasic m4.bas
  576. if exist do_test4.bat goto md4
  577. basica m4.bas
  578. if exist do_test4.bat goto md4
  579. basic m4.bas
  580. if exist do_test4.bat goto md4
  581. echo -
  582. echo - trouble making DO_TEST4.BAT
  583. goto quit1
  584. :md4
  585. del m4.bas
  586. echo 1 open "do_test5.bat" for output as 1> m5
  587. echo 2 print #1,"@echo off":print #1,"rem (C)Copyright Frederick W. Kantor 1989-1992. All rights reserved.">> m5
  588. echo 3 print #1,"if not exist %%1 goto end":print #1,"if x%%3 == x goto n1">> m5
  589. echo 4 print #1,"echo %%1 draft> %%3":print #1,":n1":print #1,"fwkcs %%1 %%2 %%3 /t20a5[wxycdef]">> m5
  590. echo 5 print #1,"echo ------------------------------------------------------------------------------->>uploads.rpt">>m5
  591. echo 6 print #1,"if exist pcbpass.txt echo From PCBPASS.TXT: >>uploads.rpt">> m5
  592. echo 7 print #1,"if exist pcbpass.txt type pcbpass.txt >> uploads.rpt">> m5
  593. echo 8 print #1,"if exist pcbfail.txt echo From PCBFAIL.TXT: >>uploads.rpt">> m5
  594. echo 9 print #1,"if exist pcbfail.txt type pcbfail.txt >> uploads.rpt">> m5
  595. echo 10 print #1,"if x%%3 == x goto n2":print #1,"echo ----------- >>uploads.rpt">> m5
  596. echo 11 print #1,"echo From corresponding (possibly revised) upload_description:>>uploads.rpt">> m5
  597. echo 12 print #1,"type %%3 >> uploads.rpt":print #1,":n2">> m5
  598. echo 13 print #1,"echo -------------------------------------------------------------------------------">> m5
  599. echo 14 print #1,"if exist pcbpass.txt echo From PCBPASS.TXT:">> m5
  600. echo 15 print #1,"if exist pcbpass.txt type pcbpass.txt">> m5
  601. echo 16 print #1,"if exist pcbfail.txt echo From PCBFAIL.TXT:">> m5
  602. echo 17 print #1,"if exist pcbfail.txt type pcbfail.txt":print #1,"if x%%3 == x goto n3">> m5
  603. echo 18 print #1,"echo -----------">> m5
  604. echo 19 print #1,"echo From corresponding (possibly revised) upload_description:">> m5
  605. echo 20 print #1,"type %%3":print #1,"del %%3":print #1,":n3">> m5
  606. echo 21 print #1,"echo -------------------------------------------------------------------------------">> m5
  607. echo 22 print #1,"if exist pcbpass.txt del pcbpass.txt">> m5
  608. echo 23 print #1,"if exist pcbfail.txt del pcbfail.txt":print #1,"if not exist %%1 goto end">> m5
  609. echo 24 print #1,"if x%%2 == x goto end":print #1,"copy %%1 accepted":print #1,"del %%1":print #1,":end":system>> m5
  610. ren m5 m5.bas
  611. qbasic /run m5.bas
  612. if exist do_test5.bat goto md5
  613. gwbasic m5.bas
  614. if exist do_test5.bat goto md5
  615. basica m5.bas
  616. if exist do_test5.bat goto md5
  617. basic m5.bas
  618. if exist do_test5.bat goto md5
  619. echo -
  620. echo - trouble making DO_TEST5.BAT
  621. goto quit1
  622. :md5
  623. del m5.bas
  624. del file??
  625. copy okptest.t    work
  626. copy allnewzt.t   work
  627. copy rnztest.t    work
  628. copy red@tst.t    work
  629. copy duptest.t    work
  630. copy 1notnewz.t   work
  631. copy qsntest.t    work
  632. copy bavtest.t    work
  633. copy obsdfcnt.av  work
  634. copy ageptest.t   work
  635. copy ageztest.t   work
  636. copy virshel.t    work
  637. copy virpath.t    work
  638. copy ziztest.t    work
  639. copy fzttest.t    work
  640. copy purgetst.t   work
  641. copy wipetest.t   work
  642. copy xcptest.t    work
  643. copy xcztest.t    work
  644. copy enc0test.t   work
  645. copy enc1test.t   work
  646. copy enc3test.t   work
  647. copy encmixt.t    work
  648. copy pzonlyt.t    work
  649. copy zzonlyt.t    work
  650. copy zipexet.exe  work
  651. copy pipexet.t    work
  652. copy zipexejt.exe work
  653. copy pipexejt.t   work
  654. copy w_in_avt.t   work
  655. copy 1yrlast.t    work
  656. copy mavtest.t    work
  657. copy unfamav.t    work
  658. copy knownav.t    work
  659. copy work\*.* 4ren
  660. if exist cslist.ndx del cslist.ndx
  661. if exist cslist.srt fwkcs /t30a7.7c cslist.srt
  662. if exist cslist.ndx del cslist.ndx
  663. if exist cslist.srt del cslist.srt
  664. if exist cslist.ndx fwkcs /t30a7.7c cslist.ndx
  665. if exist cslist.srt del cslist.srt
  666. if exist cslist1.ndx del cslist1.ndx
  667. if exist cslist1.srt del cslist1.srt
  668. fwkcs /u
  669. fwkcs /v
  670. fwkcs /u w11ref
  671. fwkcs /u w37ref
  672. fwkcs /u xflref
  673. if exist uploads.rpt del uploads.rpt
  674. if exist fwkupld.log del fwkupld.log
  675. if exist dirconts    del dirconts
  676. if exist telsysop    del telsysop
  677. if exist junkb       del junkb
  678. if exist junk        del junk
  679. echo ----------------------------------------------------- >  dirconts
  680. dir work >> dirconts
  681. echo ----------------------------------------------------- >> dirconts
  682. call do_test5 work\okptest.t    upload updesc
  683. call do_test5 work\allnewzt.t   upload updesc
  684. call do_test5 work\rnztest.t    upload updesc
  685. call do_test5 work\red@tst.t    upload updesc
  686. call do_test5 work\duptest.t    upload updesc
  687. call do_test5 work\1notnewz.t   upload updesc
  688. call do_test5 work\qsntest.t    upload updesc
  689. call do_test5 work\purgetst.t   upload updesc
  690. call do_test5 work\w_in_avt.t   upload updesc
  691. fwkcs e,ziz;q,potvirus;z1 /dc
  692. if exist bavtest.t call do_test5 work\mavtest.t upload updesc
  693. fwkcs e,ziz;q,potvirus;z2 /dc
  694. if exist bavtest.t call do_test5 work\unfamav.t upload updesc
  695. if exist bavtest.t fwkcs /a7.3l bavtest.t
  696. if exist bavtest.t call do_test5 work\knownav.t upload updesc
  697. fwkcs e,ziz;q,potvirus;z0 /dc
  698. if exist bavtest.t fwkcs /a7.3b bavtest.t
  699. fwkcs /v
  700. if exist bavtest.t call do_test5 work\bavtest.t upload updesc
  701. call do_test5 work\obsdfcnt.av  upload updesc
  702. call do_test5 work\1yrlast.t    upload updesc
  703. call do_test5 work\ageptest.t   upload updesc
  704. call do_test5 work\ageztest.t   upload updesc
  705. call do_test5 work\virshel.t    upload updesc
  706. call do_test5 work\virpath.t    upload updesc
  707. call do_test5 work\ziztest.t    upload updesc
  708. call do_test5 work\fzttest.t    upload updesc
  709. call do_test5 work\wipetest.t   upload updesc
  710. call do_test5 work\xcptest.t    upload updesc
  711. call do_test5 work\xcztest.t    upload updesc
  712. call do_test5 enc0test.t
  713. call do_test5 work\enc0test.t   upload updesc
  714. fwkcs opwiyj,junk;h,msg;k1kb,bav;ke,enc;kf,fzt;km,mav;ku,uav;g1,3 /de
  715. call do_test5 work\enc1test.t   upload updesc
  716. call do_test5 work\encmixt.t    upload updesc
  717. fwkcs opwiyj,junk;h,msg;k3kb,bav;ke,enc;kf,fzt;km,mav;ku,uav;g1,3 /de
  718. call do_test5 work\enc3test.t   upload updesc
  719. call do_test5 work\zipexet.exe  upload updesc
  720. call do_test5 work\pipexet.t    upload updesc
  721. call do_test5 work\zipexejt.exe upload updesc
  722. call do_test5 work\pipexejt.t   upload updesc
  723. fwkcs [e]z /de
  724. call do_test5 work\pzonlyt.t    upload updesc
  725. call do_test5 work\zzonlyt.t    upload updesc
  726. fwkcs /1 whatsit.t fwkcsloo.kup
  727. echo reply sans cs > shortrep.ly
  728. type fwkcsloo.kup >> shortrep.ly
  729. pkzip work\csquery.zip fwkcsloo.kup -om
  730. call do_test5 work\csquery.zip  upload updesc
  731. ren shortrep.ly fwkcsloo.kup
  732. pkzip work\shrtrply.zip fwkcsloo.kup -om
  733. call do_test5 work\shrtrply.zip upload updesc
  734. echo 12345678     A3G> fwkcsloo.kup
  735. echo reply sans cs > shortrep.ly
  736. type fwkcsloo.kup >> shortrep.ly
  737. pkzip work\badcs.zip -om fwkcsloo.kup
  738. call do_test5 work\badcs.zip    upload updesc
  739. ren shortrep.ly fwkcsloo.kup
  740. pkzip work\shrtbdcs.zip -om fwkcsloo.kup
  741. call do_test5 work\shrtbdcs.zip upload updesc
  742. copy longcs.t fwkcsloo.kup
  743. pkzip work\longcs.zip -om fwkcsloo.kup
  744. call do_test5 work\longcs.zip   upload updesc
  745. call do_test5 accepted\okptest.t
  746. call do_test5 accepted\allnewzt.t
  747. call do_test5 accepted\purgetst.t
  748. call do_test5 fzttest.t
  749. fwkcs /v
  750. fwkcs /1sm cslist.srt multis
  751. ren multis 1multis
  752. ren multcnt.rpt 1multcnt.rpt
  753. copy cslist.ndx 1cslist.ndx
  754. copy cslist.srt 1cslist.srt
  755. fwkcs /t30a7.7c cslist.ndx
  756. fwkcs /t30a7.7c cslist.srt
  757. del cslist.ndx
  758. del cslist.srt
  759. del cslist1.ndx
  760. del cslist1.srt
  761. fwkcs /u
  762. fwkcs /v
  763. fwkcs /u w11ref
  764. fwkcs /u w37ref
  765. fwkcs /u xflref
  766. call do_test4 4ren\okptest.t
  767. call do_test4 4ren\allnewzt.t
  768. call do_test4 4ren\rnztest.t
  769. call do_test4 4ren\red@tst.t
  770. call do_test4 4ren\duptest.t
  771. call do_test4 4ren\1notnewz.t
  772. call do_test4 4ren\qsntest.t
  773. call do_test4 4ren\purgetst.t
  774. call do_test4 4ren\w_in_avt.t
  775. fwkcs a18c,zcomb;j,junkb;k0n2,1;o,oust;pwv,virdata;v3z1 /db
  776. if exist bavtest.t call do_test4 4ren\mavtest.t upload updesc
  777. fwkcs a18c,zcomb;j,junkb;k0n2,1;o,oust;pwv,virdata;v3z2 /db
  778. if exist bavtest.t call do_test4 4ren\unfamav.t upload updesc
  779. if exist bavtest.t fwkcs /a7.3l bavtest.t
  780. if exist bavtest.t call do_test4 4ren\knownav.t upload updesc
  781. fwkcs a18c,zcomb;j,junkb;k0n2,1;o,oust;pwv,virdata;v3z0 /db
  782. if exist bavtest.t fwkcs /a7.3b bavtest.t
  783. fwkcs /v
  784. if exist bavtest.t call do_test4 4ren\bavtest.t
  785. call do_test4 4ren\obsdfcnt.av
  786. call do_test4 4ren\1yrlast.t
  787. call do_test4 4ren\ageptest.t
  788. call do_test4 4ren\ageztest.t
  789. call do_test4 4ren\virshel.t
  790. call do_test4 4ren\virpath.t
  791. call do_test4 4ren\ziztest.t
  792. call do_test4 4ren\fzttest.t
  793. call do_test4 4ren\wipetest.t
  794. call do_test4 4ren\xcptest.t
  795. call do_test4 4ren\xcztest.t
  796. call do_test4 4ren\enc0test.t
  797. fwkcs a18bc,zcomb;j,junkb;k1n2,1;o,oust;pwv,virdata;v3 /db
  798. call do_test4 4ren\enc1test.t
  799. call do_test4 4ren\encmixt.t
  800. fwkcs a18bc,zcomb;j,junkb;k3n2,1;o,oust;pwv,virdata;v3 /db
  801. call do_test4 4ren\enc3test.t
  802. call do_test4 4ren\zipexet.exe
  803. call do_test4 4ren\pipexet.t
  804. call do_test4 4ren\zipexejt.exe
  805. call do_test4 4ren\pipexejt.t
  806. fwkcs z[b] /db
  807. call do_test4 4ren\pzonlyt.t
  808. call do_test4 4ren\zzonlyt.t
  809. fwkcs /v
  810. fwkcs /1sm cslist.srt multis
  811. dir work     >> dirconts
  812. echo ----------------------------------------------------- >> dirconts
  813. dir potvirus >> dirconts
  814. echo ----------------------------------------------------- >> dirconts
  815. dir ziz   >> dirconts
  816. echo ----------------------------------------------------- >> dirconts
  817. dir qsn   >> dirconts
  818. echo ----------------------------------------------------- >> dirconts
  819. dir trashold >> dirconts
  820. echo ----------------------------------------------------- >> dirconts
  821. dir bav   >> dirconts
  822. echo ----------------------------------------------------- >> dirconts
  823. dir mav   >> dirconts
  824. echo ----------------------------------------------------- >> dirconts
  825. dir uav   >> dirconts
  826. echo ----------------------------------------------------- >> dirconts
  827. dir old  >> dirconts
  828. echo ----------------------------------------------------- >> dirconts
  829. dir fzt  >> dirconts
  830. echo ----------------------------------------------------- >> dirconts
  831. dir enc  >> dirconts
  832. echo ----------------------------------------------------- >> dirconts
  833. dir accepted >> dirconts
  834. echo ----------------------------------------------------- >> dirconts
  835. dir 4ren >> dirconts
  836. echo ----------------------------------------------------- >> dirconts
  837. goto end
  838. :q0
  839. @echo off
  840. echo -
  841. echo -
  842. echo -  this place is already in use...
  843. echo -  please start in a newly made, clean subdirectory.
  844. echo -
  845. goto ll
  846. :help0
  847. @echo off
  848. echo -
  849. echo -
  850. echo -   i need access to FWKCS.EXE Version 1.18,
  851. echo -   either in current directory or via path.
  852. :quit1
  853. echo -
  854. echo -
  855. echo -                    i quit
  856. echo -
  857. echo -
  858. echo -   to clean up, do  FWKCLEAR "<enter>"
  859. echo -
  860. goto ll
  861. :end
  862. if not exist no_av goto l1
  863. @echo off
  864. echo -
  865. echo -  did not make PKZIP AV_stamped files.
  866. echo -
  867. echo -  to test some of the AV_stamp handling procedures, use a copy of
  868. echo -  Phil Katz's PKZIP(R) which can make AV_stamped zipfiles.
  869. echo -
  870. :l1
  871. @echo off
  872. echo - created many files and subdirectories; to clean up, run  FWKCLEAR "<enter>"
  873. echo -
  874. echo - Re use for electronic bulletin boards (Auxiliary Function 5), see especially:
  875. echo -
  876. echo - FWKUPLD.LOG  log of "uploads".
  877. echo - UPLOADS.RPT  collected messages (with names of files for use in customizing
  878. echo -                the messages), and some revised dummy upload descriptions.
  879. echo - DIRCONTS  listing of files in WORK subdirectory before and
  880. echo -             after using those files as "uploads",
  881. echo -           listing of files in the subdirectories after run.
  882. echo - JUNK  deletions from zipfiles, with contents_signatures and names.
  883. echo - TELSYSOP  virus warnings.
  884. echo -
  885. echo -   accepted files were moved from WORK to ACCEPTED,
  886. echo -   rejected files were moved from WORK to other target subdirectories;
  887. echo -   note that some accepted zipfiles have been shortened by removing
  888. echo -     unwanted material.
  889. echo -   CSLIST.* was saved as 1CSLIST.*, to prevent interference with second run.
  890. echo -
  891. echo - a second run, with new CSLIST*.*, was used to "exercise" Auxiliary Function
  892. echo -   4, renaming rejected files: see subdirectory 4REN (listed in DIRCONTS).
  893. echo -   JUNKB lists deletions from zipfiles;
  894. echo -   VIA_OUST lists OUSTs provided for deletions via  PKZIP file -d @oust .
  895. echo -
  896. :ll
  897. if exist getfwkcs.bas del getfwkcs.bas
  898. :z1
  899.